package com.mida.bms.report.api;

import com.mida.bms.report.vo.DocDefineSpaceConsumerVo;
import com.mida.tool.common.result.ListResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.DependsOn;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @Description: 定义空间用户信息feign接口
 * @Author: wang xiao le
 * @Date: 2021/6/18 19:31
 **/
@DependsOn("loadFromDatabasePropertyConfig")
@FeignClient(name = "docDefineSpaceConsumerApi", url = "bms.report.feign.url")
public interface DocDefineSpaceConsumerApi {

    /**
     * 1、根据定义空间soid查询定义空间用户信息
     *
     * @param defineSpaceSoid 定义空间soid
     * @return 定义空间用户信息集合
     */
    @GetMapping("/docDefineSpaceConsumer/selectConsumersByDefineSpaceSoid")
    @ResponseBody
     ListResult<List<DocDefineSpaceConsumerVo>> selectConsumersByDefineSpaceSoid(@RequestParam("defineSpaceSoid") long defineSpaceSoid);

}
